package net.xiduth.game.player.dialogues;


public class TaskSystem extends Dialogue {

	@Override
	public void start() {
		stage = 1;
		if (stage == 1) {
			sendOptionsDialogue("Task System",
					"Enable the Task System",
					"Disable the Task System");
			stage = 1;
		}
	}

	public void run(int interfaceId, int componentId) {
		if (stage == 1) {
			if (componentId == OPTION_1)
				player.ToggleSystem = true;
				player.SystemED = true;
				player.sm("<col=FF0000>Please re-log for changes to take effect.");
				player.getInterfaceManager().closeChatBoxInterface();
			if (componentId == OPTION_2)
				player.ToggleSystem = false;
				player.SystemED = true;
				player.sm("<col=FF0000>To turn this back on, type ::tasksystem.");
				player.getInterfaceManager().closeChatBoxInterface();
			if (componentId == OPTION_5)
				stage = 3;
		}
	if (stage == 3) {
		end();
	}
	}

	@Override
	public void finish() {

	}

}